import { post, get } from '../http'

/**
 * @description: 获取车辆列表
 * @param data
 * @return Promise
 */
export const getCarList = (data) => post({ url: '/carInfo/getList', data })
/**
 * @description: 新增编辑车辆
 * @param data
 * @return Promise
 */
export const modifyCar = (data) => post({ url: '/carInfo/modify', data })
/**
 * @description: 解绑车机
 * @param data
 * @return Promise
 */
export const unbindCarVehicle = (data) => post({ url: '/carInfo/unbindCarVehicle', data })
/**
 * @description: 查看付款计划 应付预览V5.0.0
 * @param data
 * @return Promise
 */
export const payablePreview = (data) => post({ url: '/czsContractCarPurchase/payablePreview', data })
/**
 * @description: 编辑付款计划
 * @param data
 * @return Promise
 */
export const editPurchaseBillInfo = (data) => post({ url: '/czsContractCarPurchase/editPurchaseBillInfo', data })
/**
 * @description: 获取车辆详情
 * @param data
 * @return Promise
 */
export const getCarDetail = (data) => post({ url: '/carInfo/detail', data })

/**
 * @description: 车辆处置
 * @param data
 * @return Promise
 */
export const updateDisposal = (data) => post({ url: '/carInfo/updateDisposal', data })
/**
 * @description: 更换车牌
 * @param data
 * @return Promise
 */
export const changeLicenseNo = (data) => post({ url: '/carInfo/changeLicenseNo', data })
/**
 * @description: 导出
 * @param data
 * @return Promise
 */
export const carExportExcel = (data) => post({ url: '/carInfo/exportExcel', data })
/**
 * @description: 删除
 * @param data
 * @return Promise
 */
export const carDelete = (data) => post({ url: '/carInfo/delete', data })
/** 删除车辆信息 */
export const deleteCar = (data) => post({ url: '/carInfo/deleteCarAllInfo', data })
/**
 * @description: 获取页面参数
 * @param data
 * @return Promise
 */
export const cartoList = (data) => post({ url: '/carInfo/toList', data })
/**
 * @description: 合同Id 查询 分期付款计划
 * @param data
 * @return Promise
 */
export const findPayableListById = (data) => post({ url: '/czsContractCarPurchase/findPayableListById', data })
/**
 * @description: 编辑 合同Id 查询 分期付款计划
 * @param data
 * @return Promise
 */
export const editFindPayableListById = (data) => post({ url: '/czsContractCarPurchase/editFindPayableListById', data })
/* @description: 数据统计
 * @param data
 * @return Promise
 */
export const findStatistics = (data) => post({ url: '/carInfo/findStatistics', data })
/**
 * @description: 门店
 * @param data
 * @return Promise
 */
export const searchForStaff = (data) => post({ url: '/siteLease/searchForStaff', data })
/**
 * @description: 品牌
 * @param data
 * @return Promise
 */
export const getCarApi1 = (data) => post({ url: '/carModelTenant/searchCarBrand', data })
/**
 * @description: 车系
 * @param data
 * @return Promise
 */
export const getCarApi2 = (data) => post({ url: '/carModelTenant/searchCarSeries', data })
/**
 * @description: 车型
 * @param data
 * @return Promise
 */
export const getCarApi3 = (data) => post({ url: '/carModelTenant/searchCarModel', data })
/**
 * @description: 保养记录
 * @param data
 * @return Promise
 */
export const carMaintenanceFindDetail = (data) => post({ url: '/carMaintenance/getList', data })
/**
 * @description: 维修记录
 * @param data
 * @return Promise
 */
export const carRepairFindDetail = (data) => post({ url: '/repair/pageList', data })

/**
 * @description: 里程更新记录
 * @param data
 * @return Promise
 */
export const carMileageRecordDetail = (data) => post({ url: '/carInfo/getMileageRecord', data })

// 车辆购置费用详情
export const carPurchaseDetail = (data) => post({ url: '/carAssetFee/purchaseFeeDetails', data })

// 确认费用详情
export const confirmFeeInstallment = (data) => post({ url: '/carAssetFee/toConfirm', data })

// 确认费用
export const confirmFee = (data) => post({ url: '/carAssetFee/confirmOrderFee', data })

// 修改车辆购置费用
export const updatePurchaseFee = (data) => post({ url: '/carAssetFee/updatePurchaseFee', data })

// 获取修改费用详情（不分期）
export const getUpdateFeeDetail = (data) => post({ url: '/carAssetFee/getUpdateFeeDetail', data })

// 获取修改费用详情（其他费用）
export const getUpdateOtherFeeDetail = (data) => post({ url: '/carAssetFee/getCarAssetFeeDetailDtoById', data })

// 添加/修改-其他费用
export const updateOtherFee = (data) => post({ url: '/carAssetFee/addOtherFee', data })

// 车辆购置费列表
export const purchaseFeeList = (data) => post({ url: '/carAssetFee/getList', data })
export const purchaseFeeListV5 = (data) => post({ url: '/carAssetFee/getListV5', data })

// 车辆购置费用列表详情
export const purchaseFeeDetail = (data) => post({ url: '/carAssetFee/billDetail', data })

// 合并确认验证
export const mergeConfirmValidate = (data) => post({ url: '/carAssetFee/checkManyToConfirm', data })

// 导出车辆购置费用列表
export const exportPurchaseFee = (data) => post({ url: '/carAssetFee/exportPurchaseFeeExcel', data })

// 订单车辆
export const orderCarInfo = (data) => post({ url: '/carInfo/orderCarInfo', data })

/** 处置校验 */
export const checkDisposal = (data) => post({ url: '/carInfo/updateDisposalCheck', data })

/** 修改车型 */
export const updateCarModel = (data) => post({ url: '/carInfo/carChangeModel', data })

/** 获取处置车辆 */
export const getDisposalCarList = (data) => post({ url: '/carInfo/disposalList', data })

/** 获取归还车辆 */
export const getReturnCarList = (data) => post({ url: '/carInfo/returnedList', data })

/** 校验车牌号 */
export const checkLicenseNo = (data) => post({ url: '/carInfo/checkLicenseNo', data })

/** 校验已还车车牌号和车架号 */
export const checkReturnCar = (data) => post({ url: '/carInfo/checkBorrow', data })

/** 查询商户挪车二维码 */
export const getTenantQrCode = (data) => post({ url: '/carInfo/getTenantQrCode', data })

/** 查询车辆专属二维码 */
export const getCarQrCode = (data) => post({ url: '/carInfo/getCarQrCode', data })
